package com.bootdo.appsystem.service;

import com.bootdo.appsystem.domain.BannerDO;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author @fan
 * @email 1992lcg@163.com
 * @date 2018-07-16 16:38:39
 */
public interface BannerService {
	
	BannerDO get(Integer id);
	
	List<BannerDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(BannerDO banner);
	
	int update(BannerDO banner);
	
	int remove(Integer id);
	
	int batchRemove(Integer[] ids);

	/**
	 *
	 * 首页banner数据获取，数据存储到redis中
	 *
	 * @return 获取到的首页数据
	 */
	List<BannerDO> getIndexList(Integer i);
}
